package com.koron.auth.service;

import com.koron.bean.base.Response;
import com.koron.common.core.business.log.entity.po.LogLoginPo;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

@FeignClient(value = "eam-common-web",fallbackFactory = FeignFallbackFactory.class)
public interface CommonWebService {

    @ApiOperation(value = "保存用户登录信息")
    @PostMapping("/log/saveLogLogin")
    Response<String> saveLogLogin(@RequestHeader Map<String,String> headers, @RequestBody LogLoginPo loginPo);
}
